package org.whatisjava.validate;

import org.whatisjava.action.BaseAction;

public class TestValidateAction extends BaseAction {

    private static final long serialVersionUID = 1L;
    // input
    private String name;
    private Integer score;

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getScore() {
        return this.score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String execute() {
        System.out.println("name:" + name + ",score:" + score);
        return "success";
    }
}
